           org  $1000
start      move.b  data1,d1
           move.b  data2,d2
           cmp.b   d2,d1
           bgt     x1
           move.b  d2,large
           move.b  d1,small
           bra     x2
x1         move.b  d1,large
           move.b  d2,small
x2         nop


           org  $10a0
data1      ds.b 1
data2      ds.b 1

large      ds.b 1
small      ds.b 1